#pragma once
#include "..\dxstdafx.h"
#include "PAKWriter.h"
#include "DeclarationManager.h"

namespace ds {

class BasicMenuActionDecl : public ResourceDeclaration {


public:
	BasicMenuActionDecl(const std::string& name) : ResourceDeclaration(name) , m_Name(name) {}
	virtual ~BasicMenuActionDecl() {}
	void parseCategory(Category* category) {}
	DeclarationType getType() const {
		return DT_MENU_ACTION;
	}	
	std::string& getName() {
		return m_Name;
	}
private:
	std::string m_Name;
};

class MenuComponentParser : public DeclarationParser {

public:
	MenuComponentParser() {}
	~MenuComponentParser() {}	
	ResourceDeclaration* loadTextFile(const ResourceFile& resourceFile);
	void loadTextFile(const ResourceFile& resourceFile,DeclarationManager* declarationManager) {}
	void createResource(ResourceDeclaration* declaration);
	DeclarationType getType() const {
		return DT_MENU_ACTION;
	}
	bool isSupported(const std::string& fileEnding) const;
	bool isReloadable() const {
		return false;
	}	


};

}

